import request from '@/utils/request'

// 楼盘列表
export function listhouses(query) {
  return request({
    url: '/houses/houses/list',
    method: 'get',
    params: query
  })
}
// 楼盘列表
export function treeRegion() {
  return request({
    url: '/houses/houses/treeRegion',
    method: 'get',
  })
}

// 楼盘添加
export function savehouses(query) {
  return request({
    url: '/houses/houses/save',
    method: 'post',
    data: query
  })
}

//图片上传
export function upload(data) {
  return request({
    url: '/houses/file/upload',
    method: 'post',
    data: data
  })
}
